
/*
 * @项目名称: 模板开发
 * @FilePath: /meek/src/components/modifyevent.js
 * @Author: 1106408264@qq.com
 * @Date: 2017-06-09T16:41:03+08:00
 * @LastEditors: kongxueyang@datatang.com
 * @LastEditTime: 2021-08-02T17:58:38+08:00
 * Copyright (c) 2018-2022
 */

/**
 * Created by zhangyong on 2017/6/9.
 */

/**
 * 修改结束时，ModifyEvent将会被派发
 *
 * @class modifyevent
 * @extends BaseObject
 * @module component
 *
 */
import BaseEvent from '../core/baseevent'

export default class ModifyEvent extends BaseEvent {

  constructor(type, features, event) {
    super(type)

    /**
     * features being modified.
     */
    this.features = features

    /**
     * BrowserEvent
     */
    this.browserEvent = event
  }

}


ModifyEvent.EventType = {

  /**
   * Triggered on features modification start.
   */
  MODIFY_START: 'modifystart',

  MODIFYING: 'modifying',

  /**
   * Triggered on features modification end
   */
  MODIFY_END: 'modifyend',

  MODIFY_MOUSE_DRAG: 'modifymousedrag',

  MODIFY_MOUSE_UP: 'modifymouseup'

}
